<style lang="scss" scoped>
	.content {
		width: 100%;
		background-color: white;
		padding: 30rpx 0;
	}

	.list {
		padding: 25rpx;
		border-bottom: 1px solid #ccc;
		align-items: flex-start;
		color: #737373;

		.red {
			transform: translateY(6rpx);
		}

		.textarea {
			width: 460rpx;
			height: 120rpx;
			font-size: 28rpx;
		}

		.mic {
			height: 120rpx;
			width: 80rpx;
			border-left: 1px solid #ccc;
			padding-left: 20rpx;
		}

		.ipt {
			width: 550rpx;
		}

		.uploadfile {
			width: 550rpx;

			.btns {
				width: 100%;

				.btn {
					width: 152rpx;
					height: 64rpx;

					border: 2rpx solid #bfbfbf;
					border-radius: 34rpx;
				}
			}
		}

		.record {
			width: 550rpx;
		}
	}

	.title {
		padding: 20rpx;
		border-bottom: 1px solid #ccc;
		;
	}
</style>

<template>
	<view class="content">
		
			<view class="f34 bold" style="padding:0 30rpx;border-bottom: 1px solid #ccc;padding-bottom: 20rpx;">审核信息
			</view>
			<view class="f28 bold title">未通过原因</view>
			<view class="list  f28">
				<radio-group name="" @change="change" style="color: #1a1a1a;">
					<view class="m-top5 m-bottom5 " v-for="item,index in reason">
						<label>
							<radio color="#007AFF" :value="item.value" /><text>{{item.name}}</text>
						</label>
					</view>
					
					
				</radio-group>
			</view>
			<view class="list between-flex f28">
				<view class="align-flex">
					详细说明
				</view>
				<view class="align-flex ">
					<textarea style="width:550rpx;" v-model="remark" class="textarea"  value="" maxlength="-1" placeholder="请填写" />
			
				</view>
			</view>
			
			<view class="lbtn" @click="submit">提交</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				head: this.$head,
				reason:uni.getStorageSync('dic').noExamine,
				processValue:'',
				remark:''
				
			}
		},
		props:{
			orderNum:{
				default:0
			}
		},
		methods: {
			submit(){
				console.log(this.orderNum)
				if(!this.processValue){
					this.$msg('请选择未通过原因')
					return
				}
				this.$pop.ajaxPost('/busOrderExamine/reject', {
					orderNum:this.orderNum,
					processValue:this.processValue,
					remark:this.remark
				}).then(res=>{
					if(res.code==0){
						this.$msg('提交成功')
						this.$emit('submit')
					}
				})
			},
			change(e){
			
				this.processValue=e.detail.value
				
			}

		}
	}
</script>
